﻿CREATE TABLE [dbo].[MobileUserOwnRoles] (
    [Id]     INT IDENTITY (1, 1) NOT NULL,
    [UserId] INT NULL,
    [RoleId] INT NULL,
    CONSTRAINT [PK__MobileUs__3214EC071B9579B8_Moebius] PRIMARY KEY CLUSTERED ([Id] ASC),
    CONSTRAINT [FK__MobileUse__RoleI__205A2ED5_Moebius] FOREIGN KEY ([RoleId]) REFERENCES [dbo].[MobileRoles] ([Id]),
    CONSTRAINT [FK__MobileUse__UserI__1E71E663_Moebius] FOREIGN KEY ([UserId]) REFERENCES [dbo].[aspnet_Users] ([UserId])
);


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'手机端操作员拥有的角色', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'MobileUserOwnRoles';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'操作员Id', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'MobileUserOwnRoles', @level2type = N'COLUMN', @level2name = N'UserId';


GO
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'角色Id', @level0type = N'SCHEMA', @level0name = N'dbo', @level1type = N'TABLE', @level1name = N'MobileUserOwnRoles', @level2type = N'COLUMN', @level2name = N'RoleId';

